﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Union_Find
{
    public interface IUF
    {
        public void Union(int p, int q);

        public int Find(int p);

        public bool Connected(int p, int q);

        public int Count { get; }
    }
}
